Added a Main Loop model to kiro-client
Added kiro_client_disconnect function
Added missing memory cleanup to kiro server and client upon shutdown