thread: return an empty array if connection to thread causes an error