Add a graphic state changed server command
Fix crash on quit of the server