CCDirector removing the sharedDirector

Hi,

I have a cocos2d-x game running within a standard iPHone app, and in analysing the memory I found that when I exit the game, the CCDirector::sharedDirector() object is still hanging around in memory. Is there anyway I can de-reference it so it gets cleaned up? (this will help fix a couple of issues I have with some objects still hanging around)