Add handlers to exit more gracefully.

Existing handler should work the same. New handlers for 
* doing `server.close` before `process.exit` (what we are now explicitly doing in Fluencia) 
* just logging exception. This gives us freedom to cleanup elsewhere, which we can use express-graceful-exit or our own solution for.

@nanek