temporary fix for popups which stay forever
flush cached libraries info upon shutdown