/**
  * {@inheritdoc}
  *
  * @param array $record
  */
 protected function write(array $record)
 {
     parent::write($record);
     $this->closeSocket();
 }
 protected function write(array $record)
 {
     foreach ($this->users as $user) {
         $this->user = $user;
         parent::write($record);
         $this->closeSocket();
     }
     $this->user = null;
 }