Updated _kill_stream(). It is now idempotent.