More graceful shutdown using Kernel.exit and rescuing SystemExit.
Merge pull request #45 from ryanjohns/signal_handling

More graceful shutdown using Kernel.exit and rescuing SystemExit.