work on errorhandling for the smtp event client