Fixed concurrency issues and added better exception report