So after you close the door, the lights stay on and you can hear the bell? Seems to me your door switch is sticking and is making it think the door is open after you close it..
After you open the door to smack the dash and then shut the door again may be your making the door switch work like it...