re-added signal handling to the latest Catch (fetched from latest upstream) (re-adding #160)

This is #160 for the latest master branch.