Restart recurring tasks after application restart instead of crashing