code: function connectExtension(done) {
              if (self.closed) return done(null);
  
              if (self.extension.connection) return done();
              self.extension.once('connection', function() {
                  done();
              });
          }
docs: wait for the extension (defined previous) to connect