code: public void realClose() {
          if (isClosing()) {
              if (buffer != null) {
                  buffer.free();
                  buffer = null;
              }
              state.setState(RTMP.STATE_DISCONNECTED);
              pendingMessages.clear();
              super.close();
          }
      }
docs: Real close