Increase timeout to 30 seconds

As proved by our experience, 1 second is just too short, 30 seconds is good enough
for most cases.