I got hit by the boss just as I defeated them. Then it brought up the ranking and restarted the first stage so I couldn't do anything.