dispose communication objects properly