Issue #2134, forced commit of tx in case of database is closed was introduced.