Handle errors in instance_com socket