I think it would be safer to write this test using a `try/finally`, with `p.stop()` in the `finally`.