Fixed issue with Note Window not closing properly when alt+f4 was pressed.