Handle the case when an exception is thrown inside get_logstash_results