Yeah - all's well that ends well, but I'm not happy it happened. He should not have been able to get out.
Check the doorknob for Gidget's paw prints.