top closed but indicator light on and beeping
assuming that it is closed properly, then there has to be a sensor somewhere that indicates when it is locked in position. find that and check it out.
Search Volkswagen Beetle Questions
Volkswagen Beetle Experts