Had the opportunity to secure our aircraft today and we tried once again putting the batteries off while the APU is running, and it doesn't shut down.
External power was connected and we put the batteries back on and shut down the APU, and turned off the batteries while the APU flap was still indicated open. We monitored it and it closed eventually.
MSN 5xxxx aircraft.