Impove exception log
Optimize exception handling
Minor fixes in comments and email subject