Wait for file to close before downloading it in test app parseq