Whenever you undertake any sort of electrical work, you should always turn of or isolate the system you are working on from an power (mains or Battery)
Even 12V systems have the capability of giving you quite a surprise if you do something wrong, so if you are not certain of what needs to be done, call in someone who is.
Only reintroduce power to a system when you are fully confident of what you are doing.