added failed flag to operation done signal
save first (if document was modified) before running OpenMW
handle shutdown of OpenMW processes when shutting down OpenCS