Catch exceptions and rethrow when convenient