graceful shutdown on SIGINT
addresses #10