@contextmanager
    def cleanup(self, prog):
        try:
            yield
        except __HOLE__:
            log.error('KeyboardInterrupt')
        finally:
            if not prog.is_ok:
                log.info("Program manager letting program fail")
dataset/ETHPy150Open Anaconda-Platform/chalmers/chalmers/program_manager.py/ProgramManager.cleanup