Emit connectionError on plug errors. Related to #12.