Created callback for erros sending datagrams. Results are send via cmdgw