added sendAndClose method to TransportChannel for sending endMessages safely