Added a confirmation message when quitting

Fixes #59.