Modified Session to end automatically if last stream fails

Ignore-this: 5ac11f38e07f102c2135f6d1ffd5bac7

darcs-hash:20091113114441-1e3d8-408e889bfd31d95e95eec637e63dfce9fe2a3092