Avoid duplicate API connections

refs #6724