Fix fail Transaction managed block ended with pending COMMIT/ROLLBACK