Anxiety about closing the door

Hi! I want to ask a question about a little thing that bugs me often. Everytime I leave my house, I suddenly worry a few minutes later that I forgot to close the door. We have cats and I’m afraid to lose them if I leave the door open, and the fear is so big that most of the time I come back to check if I really closed it. Of course, I always did, I don’t think I ever forgot, but that doesn’t help me relax. Do you have any tips for this? Thank you!