saving work as library is closing