Fixed problem with hanging connection after transaction commit/rollback