Add task to check connection and stop robot when lost.