Improve papertable script to cope with timeouts and failures