Terminate function is missing in Kernel

IRC user pascal0s reported that we were missing the terminate function in our Kernel.

We execute the function in index.php after merging #561. I now used the terminate function of Symfony: https://github.com/symfony/HttpKernel/blob/master/Kernel.php#L145