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

... and release dB resources