Better error handing during recording.