avoid launching instances when queue is empty
fix IndexError caused by chrono_sort on empty dir