Fixes for authentication parsing and closing of tabs.