diff --git a/packages/server/src/utils.ts b/packages/server/src/utils.ts index 9ab5dcf6641..ec6dd6b40b4 100644 --- a/packages/server/src/utils.ts +++ b/packages/server/src/utils.ts @@ -674,13 +674,7 @@ function ensureEventListenerForDisposableStacks() { for (const event of terminateEvents) { globalThis.process.once(event, function terminateHandler() { return Promise.allSettled( - [...disposableStacks].map( - stack => - !stack.disposed && - stack.disposeAsync().catch(e => { - console.error('Error while disposing:', e); - }), - ), + [...disposableStacks].map(stack => !stack.disposed && stack.disposeAsync()), ); }); }