Don't crash the server if a pipeline panics

When there is a panic while handling a request, call a handler if set and then just close the connection instead of crashing the entire server.