One of the reason is that there is no
print $closure
before the end of but even after adding the above lines its not working