core: Prevent to detach comet controllers from page sessions which are already stopped.