fst thing when quiting is running=false;
rnd wait after dataset finished;
rnd wait to check file exstence in NFS-safe way;