commit in the try block