controller socket close