Wrapped duration in try/except to allow Travis to run.