Add NULL checks to AudioPlayer methods that destroy resources