diff --git a/packages/cli/src/commands/BaseCommand.ts b/packages/cli/src/commands/BaseCommand.ts index fc8b28c0df..b2df412039 100644 --- a/packages/cli/src/commands/BaseCommand.ts +++ b/packages/cli/src/commands/BaseCommand.ts @@ -124,7 +124,7 @@ export abstract class BaseCommand extends Command { protected async exitSuccessFully() { try { - await CrashJournal.cleanup(); + await Promise.all([CrashJournal.cleanup(), Db.close()]); } finally { process.exit(); }