made child process log when it shuts down. removed callback as api has changed for fork