Don't assume length == 0 means closed.