Fixed the catching problem.

I had to catch the UnkownHostException before IOException and re-throw
it so it could be caught again else where.