catch OSError waiting for HTTPErrors

includes ECONNREFUSED