Resilience to Threats as the Foundation of Smart Industry