add close communication method