move pipe reconnection logics to Host