Fixed a crashing but when an error arose in the method to read directory contents for iCloud. The error seems to be prematurely released.