Exit if error is returned when fetching a token

Currently throws `TypeError: Cannot read property of 'token' of undefined` if any issues are encountered fetching the auth token. This prints the error message and exits back to the shell when an error is encountered.