Just a thought, does the interior dome light switch off then all doors are firmly closed? If the doors are closed, with the car running get a friend to lean against each door one at a time and see if the warning light goes out. If the red warning light stays on saying " the trunk is open" I have seen wires broken in the iring loom that runs along the left hand hinge of the trunk lid as you look in to the trunk from the rear of the car.
This might be too old for the post, nevertheless someone might find my experience helpful, or related to the question. This happened to me once. I closed all the door and lock the car bu the break light (rear light) is still turn ON and would not go out. I check the break pedal and lo and behold, the break pedal switch (an auxiliary switch sensing the position of the break pedal) is not properly touching the break pedal due to missing (broken) small parts. What I did was I put a small plastic insert material and hold it there with a mighty bond glue; after that, the switch is now touching the break pedal properly and senses when I am breaking or not; the rear lights now go away.