Hi Vaibhav,
disabling the local ESXi shell will not terminate a session that is already logged in at the console. It will only prevent new logins.
With remote SSH sessions the behavior is the same: Existing ssh session will continue to run after you disable the SSH shell.
Regards
Andreas