ok, in my case is i want download a file ( probably small file .csv ) it came dynamic because i download it each day, so the end of file came with current date.
and main problem is, the google chrome is close too quickly( probably closed before downloading file is started ).
all i have to do is do check the file, if its already donwloaded then close the chrome, if not stay the chrome until the file is available.