This could be confined to a CC2014 issue / feature.
I am opening and closing read-only Libraries in a shared environment. My listener provides the dialog at launch. It knows to close them upon Quit.
But the User_CurrentWorkspace.xml saves the position and open or closed state of the palette. And this defeats the script action of closing the Library upon Quit.
I see no reason why you you couldn't.