This reminds me of an O. Henry story. I believe a safe cracker, who was trying to go straight and avoid being spotted by the cops, was on the scene when a child was locked in a safe. The child would die unless the safe were opened. The safe cracker quietly did the job, and the cops quietly looked the other way when he left the bank.
Anybody remember the title of this one?