Now makes sure that the source reader is closed if an exception occurs during reading.