Fix failure to launch if program previously exited during reindexing