cache warming: close the socket when done.

Also handle errors in open(), don't try to use
a non-existent socket.

Fixes b/32677877

Change-Id: I075c96d2744bee44fd1fdce4db3b52e6c63ca8b2
1 file changed