Modified connection.stop to no longer deffer itself until the page has loaded.

#2519