code: protected void clearListeners(int code, String phrase) {
          listeners.forEach(listener -> listener.eventStreamClosed(code, phrase));
  
          // Clear out the listeners
          listeners.clear();
      }
docs: Removes all listeners.
  
  @param code an integer code to represent the reason for closing
  @param phrase a String representation of code