That's a pretty hard failure when you run out of ports. At least an informative error message would be useful, instead of an implicit Index out of Bounds error.