An application that is close to your description with almost the same job is Firewall ip. It blocks all connections and warns you if an application wants to do an internet connection. It is used for iPhone and iPod only.
Warn you about what? My shopkick app will temporarily stop any music I'm listening to for a few seconds until it loads, but I'm not aware of any apps that shut off ones that are running in the background.