Hardening gridhealthchecker code