Closes all streams and connections created by this {@code StorageConnector} except the given view.This method closes all objects created by the {@link #getStorageAs(Class)} method except the given {@code view}. If {@code view} is {@code null}, then this method closes everything including the {@linkplain #getStorage() storage} if it is closeable.
This method is invoked when a suitable {@link DataStore} has been found - in which case the view usedby the data store is given in argument to this method - or when no suitable {@code DataStore} has beenfound - in which case the {@code view} argument is null.
This {@code StorageConnector} instance shall not be used anymore after invocation of this method.
@param view The view to leave open, or {@code null} if none.
@throws DataStoreException If an error occurred while closing the stream or database connection.
@see #getStorageAs(Class)
@see DataStoreProvider#open(StorageConnector)