Some code cleanup on the threading code
Bump version to 0.11.2