I stayed on board the other night connected to Shore power at the marina. I had the AC running. I had my battery switches on, but not the battery charger by about 2 AM. I heard a warning beep and when I turned my lights on, they were very dim after turning off the AC for about 15 minutes. Everything went back to normal. What am I doing wrong