Add exception code to avoid SEGV on stored procedure SecurityDetailFrame1()