It's not crashing, it's that the program runs out of code to be run, deciding to go to the Top Menu.
If you want the BGM player thing to not close after running it, put a DIALOG or a infinite loop or smth.
By the way, why are you making a program that plays the built-in BGM? The SMILE Tool already does that.
2そうだね プレイ済み