add socket disconnect listener, disconnect socket on serial disconnect and close, null socket on discconnect because there is no status, check port befor writing
add socket disconnect listener, disconnect socket on serial disconnect and close, null socket on discconnect because there is no status, check port befor writing

jacobrosenthal/chrome-serialport