The problem persists, but I think it may have something to do with the release/end commands. You see, the game freezes, but not the music. (I didn't notice this before because I usually have it muted)
So, are any problems apparent with the way I used release/end etc.?