Add more support for coverage thresholds, make error logging synchronous