cleanup of SES client