Use the ISC_LIST_FOREACH_SAFE() macro to safely walk the running https and shut them down in a manner safe from deletion.