logout: wait a tick before calling cb