Fixed connection hang when host unreachable