Added check for setsockopt return value as per Coverity scan
Added code to wait for proxy to start to first FT, as the Lua initialisation stuff seems to be making it a tiny bit slower to start.