diff --git a/zoe-cli/src/utils/koin.kt b/zoe-cli/src/utils/koin.kt index 761106c..9b926be 100644 --- a/zoe-cli/src/utils/koin.kt +++ b/zoe-cli/src/utils/koin.kt @@ -22,5 +22,9 @@ inline fun Module.singleCloseable( noinline definition: Definition ) = single(qualifier, createdAtStart, override, definition) onClose { logger.debug("closing: $it") - it?.close() + try { + it?.close() + } catch (err: Throwable) { + logger.error("error closing '$it': $err") + } } \ No newline at end of file