Implement wrapInKleeneClosure