Closing the session before closing the socket, seems to fix the issue #4.
Merge branch 'hotfix/Assertion_violation_Windows' of https://github.com/RDpt/ofxSMTP into fix-assertion
Clean up examples.
Wait for threads. Remove deprecated method signature.