master
Properly remove shared memory when finished
Use atomics to communicate across threads
Make WriteBuffer delete all its temp files in /dev/shm