added event 'done' at the end of the child process