close client fix