pub fn op_try_close( state: &mut OpState, rid: Option, ) -> Result<(), Error> { // ... }