fix error with saving recording file, release core foundation objects