Return Result enum instead of int for shutdown/initialize