Exception handling when library disappears when app is open