add a shutdown event

This patch adds a shutdow event so that clients can be notified
when the compositor is about to exit (and potentially kill its
child processes)