I also did that on my server, and never really fixed that problem.
I'm not too sure if there's a way to see if the book is currently opened, if so, it means you could close it and reopen it.
I suggest you to look at the core files that are related to gumps, maybe you would be able to find some...