Rewriting net, finally working threads, but has NPE in ObjectOutputStream initialization