Probably this is not the scope of the review, but starting fsm and linking is not atomic, and `link/1` fails if `Pid` does not exist. Then what happens to the `RestKeys` ? Will be deleted at next batch?