Unfortunately, if the cat has free access to get out, you will not stop her. The only solution to to make it impossible for her to get out. Over time she will be OK with that. You could get one of those electronic locking dog doors where it only opens when a transmitter on the dog's collar gets close. Probably a pricey option, but its a possibility