Logout process updated, socket connection management added