Improve documentation of thread- and exception-safety precautions.