delete lock file if we encounter SIGHUP or SIGTERM