/*
   * (non-Javadoc)
   *
   * @see
   * org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext
   * )
   */
  public void stop(BundleContext context) throws Exception {
    try {
      for (File file : getHistoryDirectory().listFiles()) {
        if (file.isFile()) file.delete();
      }
    } catch (Exception e) {
    }

    fIsStopped = true;
    try {
      fPHPUnitModel.stop();
    } finally {
      plugin = null;
      super.stop(context);
    }
  }