Fix shutdown behavior when Octave is not installed.