Extract Method: getToken.
Remove extravagant try/catch block.

This block didn't seem to catch the exceptions the message makes it
sound like it should.