When replugging, first ensure that a management and external port exist.
Merge pull request #190 from ryanpetrello/master

When replugging, first ensure that a management and external port exist.