Turn it off,
take out the battery,
boot the system without the battery
shut down the system
disconnect the power cord
turn the system on without the power cord attached to bleed off any stored power
replace the battery plug in the power cord and boot the system

Tell your friend that he/she should never under any circumstances remove or disconnect anything inside the pc while it is running.