When exiting my program it crashes here (mainly in the debug build).
This is all MFC/CRT code so I don't have any control over it - unless there's some tidying up that's not done. I'm not sure about...