Silly question, but is this a new car to you? ie did this problem exist before?
On some ecu installs the battery charge light can back feed a part of the system enough for the main relay to stay engaged. The common solution is to install a diode in series with the charge light.
Rob,