Closes the serial port.
@override Future<void> close() async { if (_usbPort != null) { _usbPort!.close(); _usbPort = null; } }