code: private void shutdown() throws IOException {
          ready.set(false);
          sendMessage(FirmataMessageFactory.analogReport(false));
          sendMessage(FirmataMessageFactory.digitalReport(false));
          parser.stop();
          transport.stop();
      }
docs: Tries to release all resources and properly terminate the connection to
  the hardware.
  
  @throws IOException when communication could not be stopped properly