the formation of opinion by the High Court for quashing a criminal offence or criminal proceeding or criminal complaint is guided by the material on record as to whether the ends of justice would justify such exercise of power although the ultimate consequence may be acquittal or dismissal of indictment. 58. Where the High Court quashes a criminal proceeding having regard to the fact that the dispute between the offender and the victim has been settled although the offences are not compoundable, it does so as in its opinion, continuation of 11 (2012) 10 SCC 303 17criminal proceedings will be an exercise in futility and justice in the case demands that the dispute between the parties is put to an end and peace is restored; securing the ends of justice being the ultimate guiding factor. No doubt, crimes are acts which have harmful effect on the public and consist in wrongdoing that seriously endangers and threatens the well-being of the society and it is not safe to leave the crime-doer