Remove session reference from main gui