Cleanup diagnostic output.