Secured robot serial port calls to avoid crashing.