Allow ServiceManager function to return an error.