Slight change to relogin handling.