Oh! I meant.
If the party is defeated by one of the surprise ghosts/shadows, you are still able to move around and even heal up. You're just at 1hp with both party members.
However, if you go to the door with the pink cage symbol (where normally you would rescue a party member), "Peek into the cell?" means you see every CG, as if they were captured.