SAN FRANCISCO -- Prosecutors were down to their last chance, and possibly losing the case.