Cleanup serializer.