I think it was right. Instead of making him to sit in the dressing room and watch the cricket, it is better to send him back and ask him to regain his form by playing cricket. Because by sitting in the dressing room, one cannot regain form rather it will lead to further frustration in the bowler.
He should take this as an opportunity to comfirm his berth for World Cup. He should take some tips from Saurabh, when the entire world was against him, he believed in himself and made a comeback. That too in a fabulous way.
So, I wish him best of luck for his and India's Future cricket.