handles retrying http problems when launching and fixed headnode fail cleanup