reopen socket