Fixed cleanup of resources when a music stream ends