perhaps the script times out when reading the progress from the current dump file (which may be the case when dump is huge). I suggest you to execute sitemap generator from command line via ssh for better performance.