analyzer: It should write to output file even the detection failed / incompleted.