Publish disconnect message to store if client is local.