Fixed 'mediaplayer/mediarecorder went away with unhandled events' warnings