Clear out socket file descriptors on close.