conn.shell((err, stream) => {
      if (err) {
        throw err;
      }
      stream.on('close', () => {