My JDM door has to be manually locked, however, it unlocks automatically when the ignition is turned off. Is this normal? Never had it on any other cars before.

Also is it possible to wire the side mirror opening and closing motor to open and close automatically when the car is started and when ignition is turned off?