Stop the CCDirector from running when the app is backgrounded

Stop the CCDirector from running when the app is backgrounded, regardless of what view controller is visible (because it will still crash if it tries to render in the background when it isn't the "visible" view controller).