updated to check that next exception exists