Destroy the compositor earlier to receive IPC messages in time

--HG--
extra : rebase_source : 24de8a77e830c31853598d654585d79bf68f729a
basic layers TODOs