Issue130

Fixes issue #130 
Now makes sure to commit after the job has been finalized.