Fixed multiple runs and added timeout for a run right after influxdb starts.