566 . When a person has been adjudged not to be of unsound mind and not incapable of managing his affairs, the court shall dismiss the petition. *When petition to be dismissed after inquiry.*