logout with warning