No logging on commit failure

- Fixed a bug, then entities would still be logged as inserted/updated/
deleted even tough commit save changes statement fails.