isClosed.set(true);
Operation operation = new CacheDestroyOperation(cacheConfig.getNameWithPrefix());
int partitionId = getNodeEngine().getPartitionService().getPartitionId(getDistributedObjectName());
OperationService operationService = getNodeEngine().getOperationService();
InternalCompletableFuture f = operationService.invokeOnPartition(CacheService.SERVICE_NAME, operation, partitionId);
//todo What happens in exception case? Cache doesn't get destroyed
f.getSafely();
cacheService.destroyCache(getDistributedObjectName(), true, null);
f.getSafely();