tweak demo a bit and add 'exit' to X11 window