RAII wrapper around native MI interface