adds listener to SIGINT and SIGTERM to smoothly shut down server process and release dB resources
Merge pull request #129 from caasjj/integration

adds listener to SIGINT and SIGTERM to smoothly shut down server process...