Improve error reporting.

Prevent that the root cause of an exception is hidden by a second exception
during cleanup. This happened, for instance, if the wrong driver class was
set in workload.properties, leading to a misterious exception that hid the
actual problem.