closing all writers/readers