interrupt corner case - addInterruptHandler hangs

Found this is in btcsim when rpc client timed out and ^C resulted in a orphaned btcd process.

Seems to be an issue when interrupt is received between two `addInterruptHandler` calls

https://gist.github.com/tuxcanfly/9823462551c093706ce7