Restored closing of connections in HTTP so that tests work now.