Add explicit transaction rollback with values

Thanks to @mururu for first implementation.