Get unison to quit when finished

I’m using unison in scripts in ~/.kde4/Autostart and ~/.kde4/shutdown to
sync my local user with a network copy.

If I run with ‘-ui=text’ it all works fine but I’ve got a blank screen while
it runs so no feedback.


$UNISON logon -silent -contactquietly -ui=text -prefer=/secure$HOME

If I try the '-ui=graphic" I get to watch the sync go by but it doesn’t
close when it’s finished


$UNISON logon -contactquietly -ui=graphic -batch -prefer=/secure$HOME

Is there any way of forcing the automatic exit in graphics mode?

Alan