update docs and add close bit to client