Added SerialPortFactory with on('error')