public function error($e = null)
{
try {
parent::error($e);
} catch (StopException $e) {
$this->getContainer()->apilogger->log('api.error', $this->request, $this->response);
$this->stop();
}
}