#5206 fixed try-catch