Spawned an error function within spawn-vm for more descriptive error messages