Prevent the agent thread crash on dbg exception.

* Will log the exception and go on to the next test case instead of
exiting.
* If caught the target crash and rerunning the test case, do not discard
it if reproducibility is less than 100%.
* Logger interface augmented with format methods.
* Can now properly handle the win32 error codes.