Commiting try catch