removed preformatted html

also added logging statement in socket disconnect