Re #6169. Clear the FrameworkManager at the start.

I don't think this should make any difference, but I just want to check.
Merge branch 'feature/6169_performance_monitoring' into develop