close

fun close(immediate: Boolean = false)