I am using "engine.CloseProject" API to close Xpression from controller app. However, I notice that it usually failed to close the project and report an error. Therefore, next time when users turn on from the app, it will pop up an error message such as "An instance of Xpression is already running,...". And I can see that "Xpression.ext *32" is still running behind the scene even if I called "engine.CloseProject"...
Could anyone give me some suggestion? If there's any thread, framebuffer or memory still running prohibit the closing process, how should I clean it up to close it completely?