from os import _exit
if __name__=='__main__':
    try:
        from core.info.info import show_info, Pyslvs_Splash
        args = show_info()
        from PyQt5.QtWidgets import QApplication
        from core.main import MainWindow
        if args.fusion: QApplication.setStyle('fusion')
        app = QApplication(list(vars(args).values()))
        splash = Pyslvs_Splash()
        splash.show()
        run = MainWindow(args)
        run.show()
        splash.finish(run)
        _exit(app.exec())
    except:
        import logging
        logging.exception("Exception Happened.")
        _exit(1)

from sys import exit
if __name__=='__main__':
    try:
        from core.info.info import show_info, Pyslvs_Splash
        args = show_info()
        from PyQt5.QtWidgets import QApplication
        from core.main import MainWindow
        if args.fusion: QApplication.setStyle('fusion')
        app = QApplication(list(vars(args).values()))
        splash = Pyslvs_Splash()
        splash.show()
        run = MainWindow(args)
        run.show()
        splash.finish(run)
        ExitCode = app.exec()
    except:
        import logging
        logging.exception("Exception Happened.")
        ExitCode = 1
    finally: exit(ExitCode)

Change the way of exit application.
Change the way of exit application.

- from os import _exit
+ from sys import exit
  if __name__=='__main__':
      try:
          from core.info.info import show_info, Pyslvs_Splash
          args = show_info()
          from PyQt5.QtWidgets import QApplication
          from core.main import MainWindow
          if args.fusion: QApplication.setStyle('fusion')
          app = QApplication(list(vars(args).values()))
          splash = Pyslvs_Splash()
          splash.show()
          run = MainWindow(args)
          run.show()
          splash.finish(run)
-         _exit(app.exec())
+         ExitCode = app.exec()
      except:
          import logging
          logging.exception("Exception Happened.")
-         _exit(1)
+         ExitCode = 1
+     finally: exit(ExitCode)
  
Change the way of exit application.
## Code Before:
from os import _exit
if __name__=='__main__':
    try:
        from core.info.info import show_info, Pyslvs_Splash
        args = show_info()
        from PyQt5.QtWidgets import QApplication
        from core.main import MainWindow
        if args.fusion: QApplication.setStyle('fusion')
        app = QApplication(list(vars(args).values()))
        splash = Pyslvs_Splash()
        splash.show()
        run = MainWindow(args)
        run.show()
        splash.finish(run)
        _exit(app.exec())
    except:
        import logging
        logging.exception("Exception Happened.")
        _exit(1)

## Instruction:
Change the way of exit application.
## Code After:
from sys import exit
if __name__=='__main__':
    try:
        from core.info.info import show_info, Pyslvs_Splash
        args = show_info()
        from PyQt5.QtWidgets import QApplication
        from core.main import MainWindow
        if args.fusion: QApplication.setStyle('fusion')
        app = QApplication(list(vars(args).values()))
        splash = Pyslvs_Splash()
        splash.show()
        run = MainWindow(args)
        run.show()
        splash.finish(run)
        ExitCode = app.exec()
    except:
        import logging
        logging.exception("Exception Happened.")
        ExitCode = 1
    finally: exit(ExitCode)
