On closure of account, shares are transferred with the transaction price, which is the same as the Last Traded Price (the day end price) on the date of transfer.
You can update the price manually after the transfer of shares to Kotak Securities by clicking here
Or click here to know more.