add delay to reconnecting