Failed to detach ISO image from CDROM drive from VMware

I found someone with the same problem:

I switched to the default templates and this fixed the problem but only for CentOS.

Does someone know what must be changed/added in/to the preseed provisioning template to eject properly?