Your PC isn't actually restarting when you press play in Free Realms. Because the game runs as a full-screen MMO, your monitor has to quickly switch off and readjust to match the game's resolution, which can look like a restart but isn't one.
It's a normal part of the display changing modes, so there's usually nothing to worry about.