try to handle exception of dead connection; not complete