Fix error/debug messages in Container.Attach and recover from ErrClosedPipe conditions.