moved the conversion of operation return codes
improved handling of operations errors and exceptions in the robot client
only one thread for robot, in client main