added timeout semantics and clearing of timeout when pipeline is ended