End processes when destroyed
Minimize/maximize the panel if the command is run twice in a row