Fix exception printing.