Fixed error in saving transaction if email exception is encountered.