Small fix to the right-click close on the tabs to actually close the form