Save if send fails. Deleted unused code.