Rollback transaction on close