When the Undead came down from The Gloom, they told the castle dwellers they were just going to expand a bit. So they could leave with no harm to worry about.
The castle dwellers stayed put. Many died during the ensuing battle, but the Undead lost in the end.
Updated/corrected on October 28, 2020.