Use Client.alive to check if is logged in.