Hah, nice catch! It turns out if all three die within 1 second of each other the game was registering that 0 of the key objects are outside the goal area and triggering the win state before the level gets restarted.