#26 Close connection after enter in contingency thread