fix bug with blocking ROS client, when rce is terminated before the client exits