Fix a bug with autowalking & add prompt param for tryLogout.

(We don't want to be prompted when pressing Ctrl + Q or  Ctrl + L).