enable compilation with ghc-7.6

import Control.Exception for catch and give SomeException explicitly type
for argument