''

def on_close_async(self, view):

    if stino.arduino_info[u'init_done']:
        file_path = view.file_name()
        if (file_path in stino.arduino_info.get(u'phantoms', {})):
            stino.arduino_info[u'phantoms'].pop(file_path)
        view_name = view.name()
        if view_name.endswith(u'-    Serial    Monitor'):
            serial_port = view_name.split(u'-')[0].strip()
            if (serial_port in stino.arduino_info.get(u'serial_monitors', {})):
                serial_monitor = stino.arduino_info[u'serial_monitors'].pop(serial_port)
                serial_monitor.stop()
