Emit entity removal before individual component removal, as some scripts may depend on components still existing. A malfunctioning script which tries to access a removed component or entity later can cause the whole process to exit.