A stream transformer that kills the stream after the set expiry time