try-with-resources on class Library.