Depends if the danger was genuine or not, if it is I'd leave with everyone else and take as much food, water and valuables as possible but if it wasn't I'd probably stay and exploit the power vacuum to take over the town and appoint myself as it's new Emperor.