fix close case on client