found by setting breakpoint for NPE. And pass in the socket to Transfer in the constructor, since all of the usage sites need to immediately set it.