private function fail(\Exception $e) { $this->promisor->fail($e); if ($this->writeWatcher) { \Amp\cancel($this->writeWatcher); } }