Fixed ProcessHelper.ensureProcessesHaveStopped (#389)