Fixed voluntary window close bug.