- Added a null check for `FlxG.sound.music` before calling `fadeOut()`. - Created `switchToOffsets()` to avoid duplicating the original code.
- Added a null check for `FlxG.sound.music` before calling `fadeOut()`. - Created `switchToOffsets()` to avoid duplicating the original code.