Add close() to client