I had a similar case 2 years ago. Hazard lights went on while driving. Took me quite some time to find the culrpit. Cleaned the hazard switch and other things. Nothing helped.
Finally I replaced the crash control module in the fuse box and the problem was solved. It is the brown one right of the CCM.
This crash control module has the following function in case of a crash:
switching on courtesy lights, unlocks door locks, switching off fuel pump(s)
http://www.nmia.com/~dgnrg/page_22a.htm
pic is from gale's page.