~
Use res_nclose to avoid leaking resources