close both socket if exception