Address #161 comments.
  * Use Duration.sinceUtc instead of ad-hoc logic
  * Check the process has actually exited in tests