Removed "fix" for checking errorcode instead of catching exception for implicit transaction upgrade to write, since it did not work in all cases. Current solution needs to be reworked and improved though.