Avoid exception if no ports available