added window close listener to the viewers JFrame,
requires imglib2-ui at or after 2a5737a109752ae6fb2fc3d5893031def4b4d513