Fixes crashing on open when no serial ports are present. Need to clena up error message