Remove temprary file also if the recording didn't succeed.