Apply resolve timeout only at top level
Validate resolve option earlier to prevent connection leak