Added param type checking to closure check.