rescue from close pipe