To Do:
-graceful shutdown
+ -logging hanging
+ -interrupt is not where I think it is
+ -pthread_testcancel is not the only cancel point
+ -options
+ -change thread cancel options to only end at pthread_testcancel
-hanging somewhere
- -logging shutdown now happening...
+ -logging shutdown not happening...
-consider using pthread_pop_shutdown instead in places
-remove logging/make more robust
+ -remove all printfs
-tests
-torrent
-piece_layers conformance test