Improve interruption handling.
Merge pull request #23 from matttproud/feature/signal-handling

Improve interruption handling.