Is the game supposed to crash when you die?
Yes! In the Game Over screen there's a line of code that close the game ;)