correction ioExeption after close connection