Swapped with-handlers for dynamic-wind; added thread on read.