# File lib/hammer_cli_import/asynctasksreactor.rb, line 92
      def atr_exit
        info 'Waiting for async tasks to finish' unless @task_map.empty?
        @mutex.synchronize do
          @thread_finish = true
          @thread.run
        end
        @thread.join
      rescue NoMethodError
        nil
      end