Mr. Lakshmi Narayanan,
This is because the death may occur after working hours, i.e., after the last working day, or after the employee has been marked as exited. In the case of an employee joining another organization the following day, it is true that we should set the last working day as the exit day. However, in all other cases, it is safer to put the next day as the date of exit. If you are confident, you can set the date of death as the date of exit and then engage in numerous correspondences to prove that the employee was in service until the date of death. Immediately upon hearing the news of his death, we exited him, without delving into the details that a day means 24 hours starting from midnight at 12:01 and ending at midnight at 12:00, etc. Until the time of death, we had a legal contract with the employee, and since the death occurred during the day, say at 11 am, he would cease to be an employee after the remaining hours of the day. Therefore, his death could only be considered as death while in service, etc.
Akheel, I have provided a practical solution from my own experience. You may keep the marking of exit pending, seek proper advice, and act accordingly.