added alert before automated logout for poor Sebastian who gets logged out against his will ;-)