When my try catch doesn’t work as expected