Dethread methods

Close socket method call

We need to close up the socket and stream when removing the active peer.
Refactor connection object

Move socket and stream connection to initializer.
Removed check_port method
Purge create_zmq_socket unused method