resuming unfinished tasks at service startup