Just replaced my battery recently. Had it unplugged for approximately 2 hours. Took it off, did my routine shopping, bought a new battery and installed about 2 hours later. No issue so far.
Take your time, don't yank things around. What I did, removed air box/MAF, removed coolant tank, unbot all the cords connected to the top fuse box (its all label with matching numbers). Slide the battery out and slide in the new battery. Reinstall everything.
Edit. Forgot to mention about the harness connected to the fuse block. Removed that as well.