Reconnect if connection is lost