Currently have weird bug where dup2 to /dev/null causes some writes to not be tracked