Fix the process watching demo to quit after the child quits

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>