Networking update

I should really go to sleep now. Added termination of the connection,
used by pressing "I" while connection is active.