code: protected final void onClose( final boolean wasClean,
                                  final int code,
                                  @Nullable final String reason )
    {
      getListener().onClose( this, wasClean, code, reason );
    }
docs: Fire a Close event.