Compiled under different flavours and ages of ubuntu (12.04 32bit server, 14.04 64bit desktop and server)
net_isopen() always fails, causing things like /buy and /checkfactory to think the factory server isn't connected. I suspect it's a compiler optimization failure, as any change to the code (uncommented the exceptions, or sticking a cout in there) causes it to work properly.