#50: Correctly handle timeouts for bfgminer sockets