Open Internet Options in Control Panel and go to the connections tab. Choose the connection you are using and select settings. On the next screen click on the advanced box next to the password field. On this screen ensure that the box that says disconnect when a connection is no longer needed is ticked.
Hope this helps