backport of AS7-1833 cli connection management for reload and shutdown