close jack connection cleanly