Add createTempDir
Track stack traces of Errors as well as Exceptions