set msg in failure of main sending
set msg in failure of main sending