check for running jobs before shutting down/rebooting