Add a timeout method into flow-dumper.rb