Quit gracefully
Merge pull request #49 from mattn/quit_gracefully

Quit gracefully