should quit after last window closed