Very carefully! Ask me how I know!

As mentioned above, its very easy to pinch it and thereby ground it out when you reconnect the battery.