code: public void onPipeConnectionEvent(PipeConnectionEvent event) {
          if (event.getType().equals(PipeConnectionEvent.EventType.PROVIDER_DISCONNECT)) {
              closeChannels();
          }
      }
docs: {@inheritDoc}