end reader thread on client disconnect