@ActionMethod(ids = R.id.actions_doClose)
 public void doClose(final ActionEx action) {
   if (documentModel != null) {
     documentModel.recycle();
   }
   if (scheme != null && scheme.temporary) {
     CacheManager.clear(m_fileName);
   }
   SettingsManager.releaseBookSettings(id, bookSettings);
   getManagedComponent().finish();
 }
  /**
   * {@inheritDoc}
   *
   * @see org.emdev.ui.AbstractActivityController#onDestroy(boolean)
   */
  @Override
  public void onDestroy(final boolean finishing) {
    if (finishing) {
      if (BackupSettings.current().backupOnBookClose) {
        BackupManager.backup();
      }
      if (documentModel != null) {
        documentModel.recycle();
      }
      if (scheme != null && scheme.temporary) {
        CacheManager.clear(scheme.key);
      }
      SettingsManager.removeListener(this);
      BitmapManager.clear("on finish");
      ByteBufferManager.clear("on finish");

      EBookDroidApp.onActivityClose(finishing);
    }
  }