Forgot to export Timeout. Also simplify feeding thread exit.