Add some additional logging to track issues with connecting to localhost. (see #1)