Using AtomicBoolean to ignore thrown runtime exception while closing.
Deleting temporary folders after benchmark.