working on the server-client handle

still working on the socket making it perfect is hard. removed some
old/bad code that was making a lot of bugs also added shutdown algorithm
for client.