Clean up the library