Run register in foreground

Otherwise, the script will not exit with the correct exit code on a registration failure.