2003 right? Sounds like a VSM issue. Vehicle security module, it handles the delay after the ignition is turned to off so that the windows, radio, etc... Still work until the door is opened.
They are known to cause problems if they get wet.
As far as the brakes, I'd have to dig up the wiring...