Clean up thread local hashmap on thread exit
Fix leaks in Executable and subclasses