spawn mode exit conditions