socket close fix; timestamp added to message