The termination of a criminal prosecution or lawsuit by a court's ruling preventing further lawsuits of the same type.