fix to close socket when it's NOT a persistent mode
fix to close socket when it's NOT a persistent mode, and already opened
make sure connection is properly closed after having exception on socket
Merge remote-tracking branch 'kzk/make-sure-close-on-exception-at-post-impl' into develop
Merge remote-tracking branch 'kzk/fix-close-on-destructor' into develop