Added connection close and removed echos

Now it works, darn capitals