fixed BUG-45764: commit silently rolls back if trx is marked for rollback
When commitAndClose is invoked on a Hibernate transaction that is marked for rollback, database connection is rolledback without any information.
Now this situtation adds logs with stack trace to make it easier to debug.