Fix plugin message API exceptions throwing internal errors to the client.