Fail out of vagrant up

I have a step in my vagrant file which uses a shell provisioner:

Vagrant.configure(‘2’) do |config|
config.vm.provision ‘install-cert-from-chocolatey’,
type: ‘shell’,
path: SETUP_ENVIRONMENT_DIR + ‘install-server-certificate.ps1’
end

I’d like to fail out of vagrant if the shell script fails and destroy the vm.

How can I do this?