Stop listening for os signal after handling it once. Fixes #18. ish.

See issue #18. Deregister the signal handler once we get the signal.