you could spawn the process at start and kill on exit