Manage callback, promise, and stream completion