Added specific exceptions for metadatastore