Adding disconnect and logging to client
Clean up, error handling, and new token for disconnected session for re-login purposes