When frightened, they tend to run around a room with reckless abandon, knocking over anything in their way. By quickly and quietly opening a door or window to the outside and leaving the room, you will give the squirrel its best chance to get out.