Fix closing connection for non-cachable proxies. Do not close the entire connection, just socket if opened.