close writer
close readers/writers, resolve some warnings