``` var success = false try { run() success = ...
# announcements
j
Copy code
var success = false
try {
  run()
  success = true
} finally {
  if (success) {
    cleanup()
  } else {
    try {
      cleanup()
    } catch (e: Exception) {
      // ???
    }
  }
}