improve reactor stop and connectTCP timeout