Shift login/logout handling to server thread (MCPC issue)