onClose

fun onClose(block: () -> Unit)

Specifies the block to clean resources allocated with this plugin.