ensured engine.cleanup() is now being called