Catch exceptions in transaction methods