send error mail when bgtask error is caught too