Sharing the code to exit to prevent exiting without pidfile cleaning
Merge pull request #18 from mackerelio/safe-exit

Prevent exiting without pidfile cleaning