Fixed a hang when failing to validate libraries.