KitePlayer.closeAndAwait. Completes once the player has closed and released everything.
KitePlayer.closeAndAwait