Small utility to wait for an arbitrary process to exit
