Changed back to log to stderr, since logging to stdout is causing tests and/or build to crash. Removed temp sleeps in socket tests, since appear to be unnecessary on Linux.