do it with the engine running, taking special car to keep fingers out of the valvetrain, although i dont fear touching any of those moving parts, nothing to "bite" you really.
after you plug one back in, give the engine a few seconds to "stabilize" before going for the next one.