master process exits after child processes