fix startup bug not handling error and hanging