Perform the Thrift server selector cleanup in the server thread itself and before the socket close.