#1716 More synchronization in FlashlightServerManager, and checking return codes from port mapping calls