make a try for auto restart when update API