check_icmp: finish patch, fix exit code