Exit slideshow on close. Fixes #27