Add in a delay before destroying the VM

This is an attempt to get around a VirtualBox locking error which randomly occurs.