Forgetting to join a thread
Trying to acquire a std::mutex twice
Not handling exceptions in background threads