put connection close before log and inits
Merge branch 'master' of https://github.com/techdivision/TechDivision_WebServer
Merge pull request #106 from zelgerj/master

put connection close before log and inits