Define disconnect as common abstract function

Enables option to remove a publicize connection common to all publicize
environments.