Added minim dependency.
Prevented the minim applet from being closed twice.