All you can do is try to clean them as best as you can, electronic circuits are safe to clean with a cotton bud, as long as the circuit is dry when powered up. Corroded contacts probably won't be recovered to their former glory so easily, use a cotton bud or baby wipe to remove as much of the battery deposit as you can (use gloves the alkali used can react with oils and fats in your skin).