in reply to More pipe problems

Check for errors on the close.