Added process uncaught exception to handle error issue. next add event handling for exceptions. But now focus on email sending with SJ