Extra safe exception catching