Refactored init process handling