Different apps support and bug resolved

There was a bug that prevented the app from running again if it was
minimized. My solution is try to quit it before starting it again.