close fds when a port is disconnected