Added handling of Ctrl-C so we can cleanly exit (with stats) from client.