Ouch! Not good! Yes you do need to make sure things are off before connecting or reconnecting things. Time for a new logic board sorry ;-{
open