Now spawns timer as a subprocess and cleans up on exit.