finish any_conn and cleanup