When logoutOnWindowsClose is enabled the cleanup of the symlinked public urls is not working because the session is removed before this function is called.