Update library
Handle library exceptions correctly