Cleanup open dialog on windows