Bind chunk promises to avoid scope problems.
Merge pull request #3239 from brendandahl/scope-fix

Bind chunk promises to avoid scope problems.