v5.2.1# 🐛 Fixed# FileEncoder.save(), FileEncoder.export(): close the encoder when serialization fails.