The save and load operations now uses the try-with-resources to open the streams.