Added error handling for cobbler_register.sh