Added wait for exit to logout helper in specs