try and build a jar
handle timeouts, keep socket open to server, cleanup code