fix(websocket-plugin): do not dispatch action when root injector is destroyed
#2257

arturovt wants to merge fix/socket-destroy into master

We do not currently have an analysis of these two commits