Determine local host on machine.
Close output stream.