fix signal handling.

Now you can actually Ctrl-C