Exit if error is returned when fetching a token
Merge pull request #61 from nschonni/add-authenticate-error-check

Exit if error is returned when fetching a token