Change in logMessage function.
Socket disconnect event added to remove disconnecting client from list.
Changes in log message sequences.