Fixing space leak in final chained closure.
Adding ignores for profiling generated data.

This should cover the output of valgrind and its subtools.