Error handling for opening bad notebooks