I'm looking for a way to automatically close the book menu when attempting to read or make the book unopenable with a message explaining why, whichever is easier. I know both DLC DG and DB do this with an Elder Scroll making you blind and attempting to open a Black Book outside of Solstheim but unfortunately I don't have access to the source to figure it out.
I'm assuming it starts with OnRead and I tried SetOpen(false) but no luck, really not sure what else to try.