Before a host can enter maintenance mode all virtual machines need to be powered off or migrated to another host.
If the ESXi never times out and is stuck at "In Progress" and the ESXi host appears to be in normal state when logged into its host client, perform the following steps: