Changed method of sending disconnect to checkedSend; Added test so that already initialized clients do not initialize multiple times.