Added a modal when trying to quit while games are running. This fixes #521