Closes the storage, releasing any held resources.
After calling this method, the storage should not be used further.