#1063 making sure job gets closed if stuck too