Renamed ports collection to 'openedPorts'.
Port validity checking.
Retry port ops.