Rewriting of closing channels