Use the correct error message when throwing an exception if Flush() fails when closing the VDS

Use the correct error message when throwing an exception if Flush() fails when closing the VDS.

Fixes #145 (closed).

Merge request reports