Bug fix for MS Windows for the deletion of temporary files in the system tests.
For certain Windows/Python combinations, a WindowsError was being raised saying that the file cannot
be deleted as it is being used by another process. This happens when the XML file from a
results.write or state.save user function call is deleted by the system test tearDown() method.