Close consumer socket after use.