improved error handling and logging in library scanning
better library scan progress on admin dashboard