1. A method comprising: receiving a request to instantiate an instance of a thread-local manager for a particular thread; instantiating the instance of the thread-local manager; providing global visibility to the instance of the thread-local manager; calling the thread-local manager to manipulate thread-local variables corresponding to the particular thread; and sending a single command to the thread-local manager to remove all the thread-local variables when the particular thread completes a task.