public function onFinish() { foreach ($this->attachedTo as $wss) { $this->detachWss($wss); } parent::onFinish(); }