Catch the right exception