Re #6169. Clear the FrameworkManager at the start.

I don't think this should make any difference, but I just want to check.
Re #6169. Try getting the initial memory in init instead of execute.

Some tests load data in their __init__ so I can't clear things out
in execute.