remove logging of read errors after close
adds close server to test
commited out things not used for now, and changed Recive to public