Version 1038: Bug fix in focusTabOnClose