httpclient: Reset connection on error 405 in HEAD request

It's unclear whether or not the body will be included in the response
Different servers to different things

Go safe and just disconnect
When a buffered file is closed, keep it around for a while.

This speeds up the common probe -> open scenario