HSApp: catch exceptions