weird bug, but if you get caught *right* before the exit, the invincibility frames will let you go right through the exit and not end the level. It happened to me on level 5, and assuming the other levels are coded the same it'll happen to them too.