Bump version to 0.2.2.2. Add guard to BufferedLogThread.