handle IOException

solved 404 error when loading a removed webpage