Strengthen SSL shutdown process