First, try to just ignore them. You don't want to feed into how they're feeling—don't turn off the vacuum or pick them up and baby them, because they're going to expect that the next time you vacuum. If they're really fearful, though, you might put them in another room or ask someone to take them for a walk.