Don't know if this work on…
Don't know if this work on all Subarus, but a trick to keep the engine from turning off is this: do not fully press down on the brake pedal. Press down just enough to stop the car, but not all the way down. The engine will not turn off. Press the brake all the way down, and it turns off. You can control it this way.