Better quitting of FMP main application