Ending slideshow now causes exit of the slideshow software
Fixed bugs which were making program crash at launch or were avoiding it from exiting properl