Fix global variable leak

*Needs review.* This pull request correctly sets CLOSURE_NO_DEPS so it does not leak a global variable.