Headlight problems

I’ve got a '98 taurus and when the car is off the headlights stay on briefly but then flicker out. Also, the high beam indicator on the dash stays on even though the headlights or the car is off. What could be the problem? Thanks.