max now quits on any window close