Fixed an issue with the tcp retry logic. Fallback to NullOutputChannel if hostname is null. Closes #3 and #4.