check if the host building is gone

fixes #5670