Log enhancements, and bug fix for server connection premature termination.