added SIGINT event handler to terminate mongoose connection on app termination