added socket close