Refactor service stopping logic to handle failures and improve readability. Update repository setup function to streamline parameter validation and cleanup.
Refactor service stopping logic to handle failures and improve readability. Update repository setup function to streamline parameter validation and cleanup.