Remove the daemon pid file when exit is due to SIGTERM. Bug 340