Fixed proper app shutdown
XPlane 0.9.9.2