Handle threadError Workaround for the below issue

https://github.com/iconara/cql-rb/issues/68