A library needs to be able to be closed

to avoid resource leaking