Improves error handling in sptrans async.