Reset pipe head and length after pipdisconnect