[server] Add handler for Ctrl + C exit