Fix shipping build by reworking Cog integration (now use a subsystem) Fix crash when stopping and restarting in the editor