Cleanup EEPROM writing