Fixed socket deletion from server