added root namespace to Closure instaceof condition