Maybe we could do a IsClosedError to prevent to have this line twice ?