handling server disconnect if client disconnect already happened