catch send errors