Code cleanup, move commitTransaction within try-block