Correct closing procedure.

Add new state, add documentation.
Correct-finalize: split remote host cleanup functions
Create correct shutdown procedure.
Introduce consistent naming scheme.
Update connection logic and code cleanup
WIP
Fix send procedure.
Merge branch 'close' into non-monadic-zmq