Added socket close