Overlay controls should never get focus
スレ843氏の改変を取り入れ
fix cross thread invoke crash
close overlay buttons at exit