some cleanup in the jobManager