ADD:add finalize method for clinet pool to close each client in this pool
ADD:add a if statement for checking whether remote client is closed