i i need my app to start when a user connects to the internet, and end when a user disconnects is this possible?