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

Merged Morten Ofstad requested to merge feature/morten.ofstad/FixCloseExceptionMessage into master

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

Fixes #145 (closed).

Merge request reports