EnvironmentError and NotImplementedError are built-in exceptions so better stop using them in handlers.py Inner chroot script didn't get removed properly after creation. This should fix it.