main.js timeout restart state

after restarting the state, can still control the robot, but keyspaces
and everything else are not getting updated...