Add custom error-handling to send.