fix: prevent createDeferred from keeping Node.js process alive (#2588)