docs: private void closeRemoteResources() {
          if (reader != null) {
              try {
                  reader.close();
              } catch (final IOException ignore) {
              }
              reader = null;
          }
          if (writer != null) {
              writer.close();
              writer = null;
          }
          if (socketOutstream != null) {
              try {
                  socketOutstream.close();
              } catch (final IOException ignore) {
              }
              socketOutstream = null;
          }
          if (socketInstream != null) {
              try {
                  socketInstream.close();
              } catch (final IOException ignore) {
              }
              socketInstream = null;
          }
          if (socket != null) {
              try {
                  socket.close();
              } catch (final IOException ignore) {
              }
              socket = null;
          }
      }