re #9418 Added a try-except block when making sure that there is only one instance of the app running
re #9418 Added a try-except block when making sure that there is only one instance of the app running