Added error checking on SetReadDeadline calls