Make sure the director is actually capable of rendering a frame before drawing.

Simply stopping the director when the app is backgrounded is not enough. There are still edge cases where drawScene gets called anyway, causing OpenGL calls to be made while the app is backgrounded, which crashes the app with the dreaded gpus_ReturnNotPermittedKillClient().