Loop until we confirm the command has exited
Pass some signals through to the underlying process
Try to wait until log buffers are flushed before exiting