opiClose_for_MAIA function

Implementation of opiClose for the MAIA machine.