make sure to cleanup everything if a job raises an exception