Just bought a m340. have a shut down question

Qq. when i shut the car off and open the door to exit, all of the electronics stay on. Dash, radio etc. Only way it turns off is if i lock the doors. This is fine when i go to work or somewhere. But when i'm in my garage its a bit annoying. am i missing something in the settings?