Cleanup pid-file at exit without SIGTERM.

Fixes #4
Fix test for the last commit
Merge pull request #7 from knsd/master

Cleanup pid-file at exit without SIGTERM.