Frees up an AFC client.
If the connection was created by the client itself, the connection will be closed.