There's no need for `pexepect` aside from the timeout guard. In fact, we can send shorter sentinel messages using `subprocess` and escape characters.