Add SIGTERM and SIGINT handlers to server and listener.
Merge pull request #8 from gauthierm/master

Add SIGTERM and SIGINT handlers to server and listener.