Release mediarecorder and stop amplitude readings when app stopped