make dat import on command line wait 1s before exiting so that metadata gets written after writestream