Have you considered putting the host into maintenance mode with esxcli?
esxcli system maintenanceMode --help
Usage: esxcli system maintenanceMode {cmd} [cmd options]
Available Commands:
get Get the maintenance mode state of the system.
set Enable or disable the maintenance mode of the system.