added missing exit