- handle child process stdin errors
- only assign new advertisement data if it is not undefined