Allow smarter close

If there is only 0 or 1 button close, let user close the msgbox by clicking the background.