Exit on window close.