Logout + Closing TCP Socket