Fixed possible exception.
Remove Plugins that connection was lost.