The best solution for an escape, is prevention. After bringing a new cat home, if it hasn’t already been done, microchip your cat as soon as possible. This is a service offered by many vets and shelters and it is a safe way to recover your cat. It is best to get the cat microchipped locally because the scanning devices used in your neighbourhood are more likely to be compatible with the chip. Since not not all shelters and vets have the universal chip scanner, this will improve the chances of the chip being detected when scanned.
Furthermore, always take steps to cat proof and escape proof your home before take in a new animal. For some tips on how to do this, please read this post.
Lastly, a good rule of thumb is to always visually confirm where your cat is before leaving and after returning to your home.