Add minor modification to know if a job can be interrupted. Fix a bug that raised a npe when someone clicks on the "stop" button.