rename worker `onQuit` to `onTerm`