add close method to SerializedArray