title: Detect QApplication exit as normal or crash
body: <p>I need to detect the application get exit as normal or crash. QProcess have the finished() signal and can get the exit code. But i need this exit code for QApplication when the application get crash or close.</p>