code: void shutdown() throws InterruptedException {
          m_shouldStop = true;
          if (m_thread != null) {
              m_selector.wakeup();
              m_thread.join();
          }
      }
docs: Instruct the network to stop after the current loop