Adding focusOnClose setting.