Check if config is valid before stopping service