Disabling plugins emit "connection is shut down" error

Description

Seen on master running locally:

Disabling plugins emits the following error logs, and keeps stacking for every plugin disabled:

QA Test Steps

1. Start from fresh instance of server with no plugins.
2. Launch Marketplace and install some plugins.
3. Once installed, enable them.
4. Disable the plugins.

Expected: Plugins get disabled gracefully.

Observed: Plugins emit "connection is shut down" error upon disabling. (See full error log in description.)

Status

Mana

None

Assignee

Jesse Hallam

QA Assignee

None

Reporter

Prapti Shrestha

Epic Link

None

Fix versions

Mattermost Team

Toolkit

Labels

None

QA Testing Areas

Plugins

GitHub Issue

None

Components

None
Configure