Restore streams and download in child process

Explain what's happening in this file