releasing URL connection once contents of URL has been completed