What would happen if chancellor palpatine just died?

Let's say that during the Clone Wars era, he would get a heart attack, stroke, brain aneurysm, something like that (not all at once, that would be overkill). The medics can only confirm his death when they get into his office.

What would realistically happen? Do you think that at some point after his funeral, someone would find out that he's a Sith?