Added smtp close.