Catch interrupted signals (on select, specificall) in the connect loop