Commit after writing Exception