Add a shutdown hook to gracefully terminate on ctrl+c
Moved shutdown hook
Merge pull request #51 from decebals/shutdown

Add a shutdown hook to gracefully terminate on ctrl+c