when done, write empty file "success"