closeAsync

The close() method of the MIDIPort interface makes the access to the MIDI device connected to this MIDIPort unavailable.

MDN Reference