message: cleanup if createDefaultEnvironment fails
diff: @@ -6,6 +6,8 @@ const { wireItUp } = require('@cardstack/hub/main');
  const Session = require('@cardstack/plugin-utils/session');
  exports.createDefaultEnvironment = async function(projectDir, initialModels = []) {
  + let container;
  + try {
  let factory = new JSONAPIFactory();
  let user = factory.addResource('users', 'the-default-test-user').withAttributes({
  @@ -38,7 +40,7 @@ exports.createDefaultEnvironment = async function(projectDir, initialModels = []
  mayWriteField: true
  }).withRelated('who', factory.addResource('groups', user.id));
  - let container = await wireItUp(projectDir, crypto.randomBytes(32), factory.getModels(), {
  + container = await wireItUp(projectDir, crypto.randomBytes(32), factory.getModels(), {
  allowDevDependencies: true,
  disableAutomaticIndexing: true
  });
  @@ -70,6 +72,16 @@ exports.createDefaultEnvironment = async function(projectDir, initialModels = []
  }
  });
  return container;
  + } catch (err) {
  + // don't leave a half-constructed environment lying around if we
  + // failed. Cleanup whatever parts were already created.
  + if (container) {
  + container.teardown();
  + }
  + destroyIndices();
  + temp.cleanup();
  + throw err;
  + }
  };
  exports.destroyDefaultEnvironment = async function(env) {
  