Unexpected restart on Windows machine provokes launch of a session in a loop