"costs, judgments and other costs and expenses arising out of or based upon a" . . . . . . .