reader and writer are synchronised
is now closable