should you close() the serializer?