Resolve issue with logging off if you have not loggod on