Fix closing shell when one participant close the terminal