fix bug registering serialization-strategies and cleaning-up closures