find the right logout command