private function toOutput(\Throwable $t) {
    //Write to output
    $renderer = new \Nuki\Handlers\Http\Output\Renderers\RawRenderer();
    $response = new \Nuki\Handlers\Http\Output\Response($renderer);

    $content = get_class($t) . ': ';
    $content .= $t->getMessage();
    $content .= ' in ';
    $content .= $t->getFile() . ':' . $t->getLine();

    $renderer->setContent(new \Nuki\Models\IO\Output\Content($content));

    $response->httpStatusCode(\Nuki\Models\IO\Output\Http::HTTP_EXPECTATION_FAILED);

    $response->send();

    return;
  }