Catch StandardError while downloading files