Qualify use of try and catch to fix the build with GHC 7.4.x.