I am getting the following message when I do
C-x C-c to exit Emacs:
error in process sentinel: Selecting deleted buffer
So instead of exiting Emacs like normal, I am forced to close it through Task Manager.
An Internet search and some testing shows that it might be because of package prelude or flycheck but I have not installed it.
Q: How to find which package is causing this error and remove it? How can I debug this error?