I do not believe there is a command in the Greenfoot class that will stop the music. I do believe, however, that once the scenario is stopped, the music will stop after it finishes the current looping of it. If you wish to have more control of the music, use the GreenfootSound commands to start and stop the music.