avoid haning downloads when something else than a IO exception occours

fixes issue #11