fixed the headers for the context, added close for tcp connections with url fetch