net: common: remove duplicate closing of fds
tcp: ctl: add supports for 'hangup' and 'keepalive' control options
dns: resolver: not used code removed