fixed write error when `client::up` event emitted before serial port connected to arduino has opened