make pipe autocloseable