/** * Disconnect all Pusher instances when stopping the component * * @throws Exception */ @Override protected void doStop() throws Exception { LOG.info("Stopping {}", getClass().getSimpleName()); super.doStop(); // Disconnect from any currently connected apps for (Pusher pusher : apps.values()) { try { pusher.disconnect(); } catch (Exception e) { // no-op } } }