if (canWrite())
if (canWrite() && (getBundleStoreRootDir().exists() || getBundleStoreRootDir().mkdirs()))
	protected void shutdownStateManager() {		try {			if (canWrite())				stateManager.shutdown(new File(getBundleStoreRootDir(), ".state"), new File(getBundleStoreRootDir(), ".lazy")); //$NON-NLS-1$//$NON-NLS-2$		} catch (IOException e) {			frameworkLog.log(new FrameworkEvent(FrameworkEvent.ERROR, context.getBundle(), e));		} finally {			stateManager = null;		}	}