finalize pid mode before back-out routine

Previously, PID mode changes were applied during the menu-exit routine.  This made it possible for the PID to change OUTPUT while attempting to modify after setting to MANUAL and caused unpredictable results.