Session focus issues

After closing a session, the focus is set to the last opened connection.

Solution

There are two settings in File - Options - User Interface - Tree View that you can enable/disable to resolve this issue.

Those are Auto focus tab on item select and Auto select item on tab focus

KB4081