The ending sequence(screen goes dark, hear a bunch of creepy noises and crash) is initiated when the player misses the beat,
maybe you missed the beat? Try snapping the finger every time the flashlight goes out! ;)