close

fun close()

Close all registered closeables in the reverse order they were registered.

This is called automatically after a command and its subcommands have finished running.