If electricity is restored while the generator is back feeding, it might be severely damaged and you'll need to get in contact with an electrical engineer.