Fix hang after SIGINT in debug

From <https://github.com/ecto/duino/pull/37>