Added try with resources to client, Listeners in progress - added Connection class,