reopen connection if any