Use sentry_config to load the configuration
Catch any exception from the config loader
Replace invalid while loop with a do while

At the beginning there is no current token, start by getting the next
token.