close client after request