For some reason an exception is thrown while commiting, so make sure we catch that exception and deal with it