[IMPL] logging, syslog
[FIX] proxy error
[FIX] memory leak
[FIX] no ok on close
[FIX] other
[IMPL] safe getdocument
[FIX] flush before close