reopen socket automagically