Move all logging out of release builds
Finally stop hanging, add -cpuprofile