I have a '04 330Ci, and I have also noticed that rattle once and a while when the engine is comming to rest. I'm not exactly excited to admit this, but I have noticed many 330's do this from time to time. Usually when this happens the engine seems to get a little bit rough when shutting down, by this I mean shaking or stumbling like it's misfiring. So it's probably the exhaust or a heat-shield rattling like Vlad said. I honestly wouldn't worry about it, doesn't seem to major. But if in doubt, take that puppy in and have it looked at, maybe it's a different noise and you do have something loose.