public void ControllerStopping() { // things like saving parameters, turning things off before quitting the program should go here StoreParameters(profilesPath + "StoppedParameters.bin"); }