Close and open switchyard file