Shell is updated to logout on exit and to make API calls.