Try to reconnect every second if socket closes