Close the output stream before closing connection (JOINDIN-436 #resolve)
Merge pull request #9 from richsage/fix-comment-posting

Close the output stream before closing connection