End on server kick/client leave

It makes no sense to leave the connection open when the other side has closed their connection, so I made the client close the connection when it gets an 0xff.