Add event.pull to ensure synchronization

Programs and APIs that rely on the component still existing (the filesystem api) when they are removed fail with the old code, which removes all traces of the component before event stuff can fire.