Allow a termination lambda to also be passed into the HTTP server