When working on personal computers, I power them off but usually leave the power cord connected. That way the chasis is at ground potential. An even safer way would be a cheater cord that continues the ground but leaves out the line conductors.