Prevent uncaught exceptions when uncaching from library