Rework clamd response handling to be more robust.