Move $.network.connect() above so that the stop abort requests can go through.