Maybe Local Control is the default for the MIDI devices and it turned on when the power returned, and MIDI Echo is on in SONAR. If MIDI in and out are connected, the MIDI coming out of SONAR and back into the MIDI device produces another note with a slight delay.
I think SONAR turns off Local Control under some conditions but I'm hazy on the details.