How to RescueEdit
In order to cleanse your hands, go across the bridge nearby and go forward across the narrow path. As it breaks away into two paths, there will be a small well down one of the paths. Walk up to it and a short scene will play, showing Bungalow showered with water. Walk back to Gadget, and the shrine will remain open, allowing you to rescue her.