awaitClosed

Waits until the endpoint is closed, by any path, and every coroutine it ran has finished, request handlers included; returns closeCause. For graceful shutdown and tests. Called from one of the endpoint's own coroutines, such as a request handler, it never returns.