Check the microswitch in the boot, on the back wall behind the plastic part. Most likely suspect.
http://www.z4-forum.com/forum/viewtopic.php?f=3&t=2057&p=30301#p30301
There are a ton of threads on this subject. For more information use the search button.