shut down client and socket on failed result, don't send mail data when we have
failed the mail due to too large size (this was leaking into the next unit test)

Signed-off-by: alexlehm <alexlehm@gmail.com>