fix error with -logging option for GUI due to session not having been created