you have to handle the media handle
like this:
Code:

var curr_song;
...
curr_song=media_play(...);
...
//somewhere in your code:
media_stop(curr_song);
level_load(...);
wait(3);
curr_song=media_play(...);