Changed RES_PORT_RETRY from 3 to 50 to reduce the chance
of failing to get a reserved port.