Handle exception during Do block