log out when using native optimizer