Fixed issue #37 (create .stop file only if job is running)