Fix tests
allow more tests
allow more tests, better-send
Correct closing procedure.

Add new state, add documentation.
Correct-finalize: split remote host cleanup functions
Create correct shutdown procedure.