"The case is not viable for prosecution," a prosecutor told the court.