commented endJob function (not called)