[#3614500]Menu should be detached if parent window is destroyed.

This issue is fixed by commit ea70d7085529042343df83d037fd80e5c025c77d
in 1.2.0 but still present in 1.1.x, adding the fix here.
Release v.1.1.4.