Notepad ++ is killed when closing the console
Notepad ++ is forcibly terminated when the console is closed by a method other than the menu. This seems to be caused by AttachConsole used in Windows API.
As a temporary workaround to this problem, the RemoveMenu function was used and the close button was disabled. However, there is still a way to close the console, so it's only an ad hoc action.