Reconciling Safety with the Internet for Cyber-Physical Systems