/**
  * Reset ignore_user_abort if it's activated and if it's the same target
  * who activated it.
  *
  * If exit_on_abort is enabled and the connection has been aborted
  * exit the script.
  *
  * @param  Event $event
  * @return void
  */
 public function onAfter(Event $event)
 {
     if ($this->activatedTarget === $event->getStorage()) {
         // exit if connection aborted
         if ($this->getOptions()->getExitOnAbort() && connection_aborted()) {
             exit;
         }
         // reset ignore_user_abort
         ignore_user_abort(false);
         // remove activated target
         $this->activatedTarget = null;
     }
 }