improved download from www error handling