make sure to cleanup everything if a job raises an exception
Merge pull request #83 from ThomasSevestre/debug_job_trigger

make sure to cleanup everything if a job raises an exception