Diffusion-Limited Reactions and Mortal Random Walkers in Confined Geometries