socket disconnection and fetching older logs bug fixed