identify app correctly when catching exceptions