No, I can't reproduce this.
It happened after few hours of work. Path of called functions is straight, no recursion. Activated form is first after main form.
I've tried to search problem in HMG sources, but without results.

Re: close on the X button. I think I had the same problem before in 3.2.
At first to solve problem I created my own X button for releasing window. Then I found that if a grid had focus it would lock the program.
Now in 3.2 to get around problem when releasing window when in a grid I set focus off the grid first then release window.
Usually I set focus to a label, then release the window.
Hope this was same problem ............ Franco