public void close() throws TGPluginException {
   try {
     this.provider.closeAll();
   } catch (MidiPlayerException e) {
     throw new TGPluginException(e.getMessage(), e);
   }
 }
 protected void removePlugin() throws TGPluginException {
   if (this.loaded) {
     try {
       TuxGuitar.instance().getPlayer().removeSequencerProvider(this.provider);
       this.loaded = false;
     } catch (MidiPlayerException e) {
       throw new TGPluginException(e.getMessage(), e);
     }
   }
 }