[Close #44]Refine XError service and able to send errors by email.