The gate to the genius is now closed. The genius’ visiting hours are over, so the gate is closed. This genius has been genetically modified to know more than any human could know, and his days are spent answering questions and advising. But now, his work day is over, so his gates are closed.
On the other side of the closed gates there is still a line of people that want the genius's advice. They decide to keep waiting until morning and gather together some hay (へい) so that sleeping outside won't be so awful.