Exception not caught