Get rid of bogus garbage_size global.
Add test showing how shutdown works on a pipe without SIGPIPE.