Reopen connection if needed
Limit the number of connections