added closing channels