Migrate to Control.Exception, catching everything (this should be fixed) because I'm not sure what the old version really did. :-)
Merge pull request #2 from srhb/master

Compatibility with GHC 7.6,