Fixed the way multithreading works. Executor now properly closes threads when they're done.