$CHILD_STATUS was nil. fix to use $?