Adding this message will allow you to stop IDE without error messages:
Code:
Const WM_UAHDESTROYWINDOW As Long = &H90&
Case WM_NCDESTROY, WM_UAHDESTROYWINDOW
            UnSubclassWnd hWnd, Subclass
P.S. Thanks for nice demo!